import Request from '@/utils/request/request-util';

/**
 * MES投煤量数据-API接口
 *
 * @author 张朋飞
 * @date 2024/10/09 15:59
 */
export class PmPowerplantProConBomApi {

  /**
   * 获取分页列表
   *
   * @author 张朋飞
   * @date 2024/10/09 15:59
   */
  static findPage(params) {
    return Request.getAndLoadData('/pmPowerplantProConBom/page', params);
  }

  /**
   * 添加MES投煤量数据
   *
   * @author 张朋飞
   * @date 2024/10/09 15:59
   */
  static add(params) {
    return Request.post('/pmPowerplantProConBom/add', params);
  }

  /**
   * 编辑MES投煤量数据
   *
   * @author 张朋飞
   * @date 2024/10/09 15:59
   */
  static edit(params) {
    return Request.post('/pmPowerplantProConBom/edit', params);
  }

  /**
   * 删除单个MES投煤量数据
   *
   * @author 张朋飞
   * @date 2024/10/09 15:59
   */
  static delete(params) {
    return Request.post('/pmPowerplantProConBom/delete', params);
  }

  /**
   * 删除批量MES投煤量数据
   *
   * @author 张朋飞
   * @date 2024/10/09 15:59
   */
  static batchDelete(params) {
    return Request.post('/pmPowerplantProConBom/batchDelete', params);
  }

  /**
   * MES投煤量数据详情
   *
   * @author 张朋飞
   * @date 2024/10/09 15:59
   */
  static detail(params) {
    return Request.getAndLoadData('/pmPowerplantProConBom/detail', params);
  }

  findList

    /**
   * 每日投料数据
   *
   * @author 张朋飞
   * @date 2024/10/09 15:57
   */
    static findList(params) {
      return Request.getAndLoadData('/pmPowerplantProConBom/listByDate', params);
    }
}